package com.hang.ixin.dao;

import com.hang.ixin.POJO.MyFriends;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MyfriendsDao extends JpaRepository<MyFriends,String> {
    MyFriends findByMyUserIdAndMyFriendUserId(@Param("myUserId") String myId,
                                              @Param("myFriendUserId") String myfriendId);

    List<MyFriends> findByMyUserId(String myId);
}
